<%-- <%@ page language="java" contentType="text/html; charset=utf-8" --%>
<%--     pageEncoding="utf-8"%> --%>
    <%@ page language="java" 
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<%-- <script src="${pageContext.request.contextPath}/js/jquery3.3.1.js"></script> --%>
<%-- <link href="${pageContext.request.contextPath}/css/bootstrap.min.css" rel="stylesheet"> --%>
<%-- <link href="${pageContext.request.contextPath}/css/bootstrap-theme.min.css" rel="stylesheet"> --%>
<%-- <script src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script> --%>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<%-- <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-1.11.0.min.js"></script> --%>
 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--  <link href="${pageContext.request.contextPath }/css/flowersingle.css" rel="stylesheet" type="text/css" /> --%>
<title>Insert title here</title>
</head>
<body>
<ol class="list-inline" style = "position:relative;right:100px;width:430px;"><!-- 我加了样式css -->
	<li>
		<a href = "${pageContext.request.contextPath}/ShowMyInfoServlet">
			${user_login.username }
		</a>
	</li>
	   <c:if test="${user_login == null }"> <!-- 我添加了一下内容 -->
	   	<li>
	    	<a href = "${pageContext.request.contextPath}/Login.jsp">
	    		登录
	    	</a>
	   	</li>
	   </c:if>
	<li><a href="register2.jsp">注册</a></li>
	
	<c:if test="${user_login != null }"> <!-- 我添加了一下内容 -->
	   	<li>
	    	<a href = "${pageContext.request.contextPath}/LogOutServlet">
	    		退出登录
	    	</a>
	   	</li>
	   	<li><a href="${pageContext.request.contextPath}/ShowCartSerlvet" id="cart">购物车</a></li>
		<li><a href="${pageContext.request.contextPath}/ShowOrderServlet" id="order">我的订单</a></li>
	   </c:if>
	<li><!-- 我添加了这个 -->
		<c:if test="${user_login!=null &&user_login.shopid != null}">
			<a href="${pageContext.request.contextPath}/ShopCenterServlet" id="">卖家中心</a>
		</c:if>
		<c:if test="${user_login!=null &&user_login.shopid == null}">
			<a href="${pageContext.request.contextPath }/ShopRegister.jsp" id="">申请成为商家</a>
		</c:if>
	</li>  
</ol>

</body>
</html>